package com.siwei.mes.common.exception;

/**
 * @author chenmaolin
 * @create 2021-12-08 9:24
 */
public class RepositoryException extends Exception {
    private static final long serialVersionUID = -2874655640391786284L;
    private String errCode;
    private String errMsg;

    public RepositoryException(String message) {
        super(message);
    }

    public RepositoryException(Throwable cause) {
        super(cause);
    }

    public RepositoryException(String errCode, String errMsg) {
        super(errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public RepositoryException(Throwable cause, String errCode, String errMsg) {
        super(errMsg, cause);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return this.errCode;
    }

    public String getErrMsg() {
        return this.errMsg;
    }
}
